<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="/css/base.css">
</head>
<body>
    <h1>模板引擎 --- koa-art-template </h1>
    <hr>
    <h3>子模版</h3>
    {{include './public/header.html'}}
    <h2>{{title}}</h2>
    <hr>
    <h3>循环</h3>
    <ul>
        {{each arr}}
        <li>{{$value}}</li>
        {{/each}}
    </ul>
    <hr>
    <h3>条件</h3>
    {{if num > 20}}
    <strong>大于20</strong>
    {{else}}
    <strong>小于20</strong>
    {{/if}}
    <hr>
    <img src="/images/timg.jpg" alt="">
</body>
</html>